package com.maserb.monitor.repository;

import com.maserb.monitor.entity.Role;
import com.maserb.monitor.entity.RoleFunction;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface RoleFunctionRepository extends JpaSpecificationExecutor<RoleFunction>, PagingAndSortingRepository<RoleFunction, String> {
    List<RoleFunction> findByRole(Role role);
}
